import request from "@/utils/api/request.js";

export const SelectJob = (enterprise, other) => {
    return request({
        url: '/graduate/job',
        method: 'get',
        params: {
            'enterpriseName': enterprise,
            'other': other
        }
    })
};

export const PutResume = (sno, eno, jobId) => {
    return request({
        url: '/graduate/put',
        method: 'post',
        data: {
            'sno': sno,
            'eno': eno,
            'jobId': jobId,
        }
    })
};

export const GetResume = (sno) => {
    return request({
        url: '/graduate/get',
        method: 'get',
        params: {
            'sno': sno,
        }
    })
};

export const UpdateResume = (sno, resume) => {
    return request({
        url: '/graduate/update',
        method: 'put',
        params: {
            'sno': sno,
            'resume': resume,
        }
    })
};

export const SelectResume = (sno, enterpriseName) => {
    return request({
        url: 'graduate/putted',
        method: 'get',
        params: {
            'sno': sno,
            'enterpriseName': enterpriseName,
        }
    })
};

export const Messages = (sno, eno, content, jobId) => {
    return request({
        url: 'graduate/message',
        method: 'post',
        data: {
            'sno': sno,
            'eno': eno,
            'content': content,
            'jobId': jobId,
        }
    })
};

export const ListMessages = (sno, eno, jobId) => {
    return request({
        url: 'graduate/listMsg',
        method: 'get',
        params: {
            'sno': sno,
            'eno': eno,
            'jobId': jobId,
        }
    })
}



